<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="org.springside.core.Constants"%>
<%@ include file="/common/taglibs.jsp" %>
<fmt:message key="message_portal_label1" var="message_portal_label1"/>
<fmt:message key="message_portal_label2" var="message_portal_label2"/>
<fmt:message key="message_portal_label3" var="message_portal_label3"/>
<fmt:message key="message_portal_label4" var="message_portal_label4"/>
<fmt:message key="message_portal_label5" var="message_portal_label5"/>
<fmt:message key="message_portal_label6" var="message_portal_label6"/>
<fmt:message key="message_portal_label7" var="message_portal_label7"/>
<fmt:message key="messages_outbox_label21" var="messages_outbox_label21"/>
<fmt:message key="messages_outbox_label22" var="messages_outbox_label22"/>
<fmt:message key="home_portal_label128" var="home_portal_label128"/>

<ff:boxportlet header="${home_portal_label128}">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding-left:5px">
	<tr>
		<td valign="top">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbl_left_ico">
		<c:forEach items="${notifyMessage}" var="messages">
			<tr>
				<td>
					<c:if test="${messages.isread != 0}">
						<A class="link_portlet"
							href="<c:url value="/modules/message/messages.do?method=show&id=${messages.id}"/>"
							title="${messages.title}"> <c:if
								test="${fn:length(messages.title)> param.y}">
		                	${fn:substring(messages.title,0, param.y)}...
		                </c:if> <c:if test="${fn:length(messages.title)<=param.y}">
		                	${messages.title}
		                </c:if> </a>
		                (<font color="#999999"><fmt:formatDate value="${messages.createdate}" pattern="MM-dd HH:mm"/></font>)
					</c:if>
					<c:if test="${messages.isread == 0}">
						<A class="link_portlet"
							href="<c:url value="/modules/message/messages.do?method=show&id=${messages.id}"/>"
							title="${messages.title}"> <B> <c:if
									test="${fn:length(messages.title)>param.y}">
		                	${fn:substring(messages.title,0,param.y)}...
		                </c:if> <c:if test="${fn:length(messages.title)<=param.y}">
                                   ${messages.title}
								</c:if> </B> </a>
					  <img src="<c:url value="../../themes/${sessionScope.loginUser.theme}/home/images/new.gif"/>">
					(<font color="#999999"><fmt:formatDate value="${messages.createdate}" pattern="MM-dd HH:mm"/></font>)
					</c:if>
				</td>
			</tr>
		</c:forEach>
		<c:if test="${fn:length(notifyMessage) < 1}">
			<tr>
				<td>
					&nbsp;
				</td>
			</tr>
		</c:if>
		<c:if test="${fn:length(notifyMessage) < 2}">
			<tr>
				<td>
					&nbsp;
				</td>
			</tr>
		</c:if>
		<c:if test="${fn:length(notifyMessage) < 3}">
			<tr>
				<td>
					&nbsp;
				</td>
			</tr>
		</c:if>
		<c:if test="${fn:length(notifyMessage) < 4}">
			<tr>
				<td>
					&nbsp;
				</td>
			</tr>
		</c:if>		
		 <c:if test="${fn:length(notifyMessage) <5}">           
              <tr>
                <td>&nbsp;</td>
              </tr>
            </c:if>

	</table>

	<table width="100%" height="17">
		<tr>
			<td>
				&nbsp;
			</td>
			<td width="30" class="tbl_more_ico_td">
				<a href="#" class="link_portlet"
				                       
					onClick='mainJump("/modules/message/messages.do?type=1","<%=Constants.USER_THEME_FRAME %>")'
					title="<fmt:message key="common_more" />"><fmt:message
						key="common_more" />
				</a>
			</td>
		</tr>
	</table>
		</td>
	</tr>
</table>	
</ff:boxportlet> 

